package cn.itsource.mapper;

import cn.itsource.domain.User;
import cn.itsource.query.Query;

import java.util.List;

public interface UserMapper {


    public List<User> findAll();

    public User findOne(Long id);

    public void add(User user);

    public void update(User user);

    public void delete(Long id);

    //分页+模糊查询
    List<User> pageQuery(Query query);

    //批量删除
    void patchdel(Long[] ids);

    User findAccount(String account);

}
